<?php
/**
 * Medical Studies List
 *
 */
use Fox\Generator;
use Fox\Grid\FieldCat\Field\Renderer\Anchor;
use Fox\Grid;
use Nawa\Messages;
use Fox\Html\Block;
$block = new Block('bMedicalStudies',Msg(Messages::BUNDLE,Messages::LABEL_STUDIES));

$grid = new Fox\Grid('gMedicalStudies');
$grid->fieldcat(array(array('ms_reference','reference'),'label','start_date','end_date'));
$grid->fieldcat()->switchToObjectMode();
$grid->fieldcat()->setFieldAttr('*', 'renderers',new Anchor(Generator::url(
	'medicalstudies','update',null,
	array('msid' => Generator::useAttribute('msid'))
)));
$block->add($grid);
return $block;
